<div class="notifications">
    <tal:block tal:repeat="types this/notifications">
	<ul tal:attributes="class php:((repeat.types.key == 'error') ? 'ui-state-error ' : 'ui-state-highlight ') . repeat.types.key">
	    <tal:block tal:repeat="notification types">
		<li tal:attributes="class php:((repeat.types.key == 'error') ? 'ui-state-error-text ' : '') . repeat.types.key"><span tal:content="structure notification"></span></li>
	    </tal:block>
	</ul>
    </tal:block>
</div>